package com.lhy.mymall.mapper;

import com.lhy.mymall.pojo.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author: 卢辉宇
 * @date: 2022/12/19 20:34
 * @description: 订单mapper类
 */
@Mapper
public interface OrderMapper {
    int insert(Order order);
    Order selectByOrderNo(String orderNO);

    int update(Order order);

    List<Order> selectAllForAdmin();

    List<Order> selectByUserId(Integer userId);
}
